import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column } from 'typeorm';

/**
 * 出险记录
 */
@EntityModel('demo_danger')
export class DemoDangerEntity extends BaseEntity {

	@Column({ comment: '公司名称' })
	deptName: string;

	@Column({ comment: '保单号码' })
	goodsNo: string;

	@Column({ comment: '出险人姓名' })
	name: string;

	@Column({ comment: '保险起期' })
	plusDate: Date;

	@Column({ comment: '出险时间' })
	dangerDate: Date;

	@Column({ comment: '负责人姓名' })
	directorName: string;

	@Column({ comment: '负责人电话' })
	directorPhone: string;

	@Column({ comment: '公司联系人姓名' })
	managerName: string;

	@Column({ comment: '公司联系人电话' })
	managerPhone: string;
}
